package com.ztc.ZtcClasses.bean;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcClassesPrice.bean.ZtcClassesPrice;
import com.ztc.ZtcClassesSite.bean.ZtcClassesSite;
import com.ztc.ZtcRoute.bean.ZtcRoute;
@Entity
@Table(name = "ztc_classes")
public class ZtcClasses implements BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//

    private String name;//å�‘å¸ƒç�­æ¬¡çš„å��ç§°

    private String remark;//å¤‡æ³¨

    private java.lang.Integer ticketStatus;//å�‘å¸ƒç�­æ¬¡çš„å”®ç¥¨çŠ¶æ€�ï¼š0.ä¸�å�œå”®1.å�œå”®

    private java.lang.Integer isRefund;//æ˜¯å�¦å�¯é€€ç¥¨ï¼š0.ä¸�å�¯é€€ç¥¨1.å�¯é€€ç¥
    
    private java.lang.Integer preSaleDays;
    
    private java.lang.Integer seatNumber;//æˆ�äººç¥¨æ•°é‡�
    
    private java.lang.Integer childSeatNumber;
    
    private java.util.Date departureDate;//å�‘è½¦æ—¶é—´
    
    private java.util.Date addTime;//æ·»åŠ æ—¶é—´
    
    private java.lang.Integer departureType;
    
    private java.lang.Integer carType;
    
    private java.lang.Integer dayFrequenceType;
    
    private String forbidSaleTimeRegionBeforeDeparture;
    
    private java.lang.Integer isDisplayPictures;
    
    private String weekAllDays;
    
    private String monthAllDays;
    
    private String selectDates;
    
    private java.util.Date modifyTime;//æ·»åŠ æ—¶é—´
    
    private String fkZtcCarId;//å�‘å¸ƒç�­æ¬¡æ‰€ç”¨è½¦è¾†id
    
    private String fkZtcDriverId;//å�‘å¸ƒç�­æ¬¡æ‰€ç”¨å�¸æœºid

    private String fkZtcRouteId;
    
    private String fkAddUserId;//å�‘å¸ƒç�­æ¬¡çš„ç”¨æˆ·id
    
    private String fkModifyUserId;
    
    private String fkTransportId;

	private java.util.Date autoArrangeEndDate;
    
    private ZtcRoute ztcRoute;
    
    private List<ZtcClassesPrice> ztcClassesPrices;
    
    private List<ZtcClassesSite> ztcClassesSites;

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setTicketStatus(java.lang.Integer ticketStatus) {
		this.ticketStatus = ticketStatus;
	}
	
	public void setSeatNumber(java.lang.Integer seatNumber) {
		this.seatNumber = seatNumber;
	}
		
	public void setChildSeatNumber(java.lang.Integer childSeatNumber) {
		this.childSeatNumber = childSeatNumber;
	}
	public void setIsRefund(java.lang.Integer isRefund) {
		this.isRefund = isRefund;
	}

	public void setPreSaleDays(java.lang.Integer preSaleDays) {
		this.preSaleDays = preSaleDays;
	}

	public void setAddTime(java.util.Date addTime) {
		this.addTime = addTime;
	}

	public void setFkTransportId(String fkTransportId) {
		this.fkTransportId = fkTransportId;
	}

	public void setFkZtcCarId(String fkZtcCarId) {
		this.fkZtcCarId = fkZtcCarId;
	}

	public void setFkZtcDriverId(String fkZtcDriverId) {
		this.fkZtcDriverId = fkZtcDriverId;
	}

	public void setFkZtcRouteId(String fkZtcRouteId) {
		this.fkZtcRouteId = fkZtcRouteId;
	}

	public void setZtcRoute(ZtcRoute ztcRoute) {
		this.ztcRoute = ztcRoute;
	}

	public void setZtcClassesPrices(List<ZtcClassesPrice> ztcClassesPrices) {
		this.ztcClassesPrices = ztcClassesPrices;
	}

	public void setZtcClassesSites(List<ZtcClassesSite> ztcClassesSites) {
		this.ztcClassesSites = ztcClassesSites;
	}

	public void setDepartureDate(java.util.Date departureDate) {
		this.departureDate = departureDate;
	}

	public void setModifyTime(java.util.Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public void setFkAddUserId(String fkAddUserId) {
		this.fkAddUserId = fkAddUserId;
	}

	public void setFkModifyUserId(String fkModifyUserId) {
		this.fkModifyUserId = fkModifyUserId;
	}
	
	public void setDepartureType(java.lang.Integer departureType) {
		this.departureType = departureType;
	}
	
	public void setCarType(java.lang.Integer carType) {
		this.carType = carType;
	}
	
	public void setWeekAllDays(String weekAllDays) {
		this.weekAllDays = weekAllDays;
	}

	public void setMonthAllDays(String monthAllDays) {
		this.monthAllDays = monthAllDays;
	}
	
	public void setDayFrequenceType(java.lang.Integer dayFrequenceType) {
		this.dayFrequenceType = dayFrequenceType;
	}

	public void setIsDisplayPictures(java.lang.Integer isDisplayPictures) {
		this.isDisplayPictures = isDisplayPictures;
	}

	public void setSelectDates(String selectDates) {
		this.selectDates = selectDates;
	}
	
	public void setForbidSaleTimeRegionBeforeDeparture(String forbidSaleTimeRegionBeforeDeparture) {
		this.forbidSaleTimeRegionBeforeDeparture = forbidSaleTimeRegionBeforeDeparture;
	}
	public void setAutoArrangeEndDate(Date autoArrangeEndDate) {
		this.autoArrangeEndDate = autoArrangeEndDate;
	}
	@Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
	public String getId() {
		return id;
	}
    
    @Column(name ="name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getName() {
		return name;
	}
    
    @Column(name ="remark",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
	public String getRemark() {
		return remark;
	}
    
    @Column(name ="ticket_status",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getTicketStatus() {
		return ticketStatus;
	}
    @Column(name ="is_display_pictures",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getIsDisplayPictures() {
		return isDisplayPictures;
	}
    @Column(name ="departure_date",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getDepartureDate() {
		return departureDate;
	}
    @Column(name ="modify_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getModifyTime() {
		return modifyTime;
	}
    @Column(name ="fk_add_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkAddUserId() {
		return fkAddUserId;
	}
    @Column(name ="fk_modify_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkModifyUserId() {
		return fkModifyUserId;
	}
    @Column(name ="is_refund",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getIsRefund() {
		return isRefund;
	}
    @Column(name ="pre_sale_days",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getPreSaleDays() {
		return preSaleDays;
	}	
    @Column(name ="add_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
	public java.util.Date getAddTime() {
		return addTime;
	}
    @Column(name ="fk_ztc_car_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getFkZtcCarId() {
		return fkZtcCarId;
	}
    @Column(name ="fk_ztc_driver_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getFkZtcDriverId() {
		return fkZtcDriverId;
	}
	@Column(name ="fk_ztc_route_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
	public String getFkZtcRouteId() {
		return fkZtcRouteId;
	}
	@Column(name ="fk_transport_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
	public String getFkTransportId() {
		return fkTransportId;
	}
	@Column(name ="departure_type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getDepartureType() {
		return departureType;
	}
	@Column(name ="car_type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getCarType() {
		return carType;
	}
    @Column(name ="week_all_days",unique=false,nullable=true,insertable=true,updatable=true,length=64)
	public String getWeekAllDays() {
		return weekAllDays;
	}
    @Column(name ="month_all_days",unique=false,nullable=true,insertable=true,updatable=true,length=256)
	public String getMonthAllDays() {
		return monthAllDays;
	}
    @Column(name ="day_frequency_type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
	public java.lang.Integer getDayFrequenceType() {
		return dayFrequenceType;
	}
    @Column(name ="child_seat_number",unique=false,nullable=true,insertable=true,updatable=true,length=4)
   	public java.lang.Integer getChildSeatNumber() {
   		return childSeatNumber;
   	}
    @Column(name ="seat_number",unique=false,nullable=true,insertable=true,updatable=true,length=4)
   	public java.lang.Integer getSeatNumber() {
   		return seatNumber;
   	}
    @Column(name ="forbid_sale_time_region_before_departure",unique=false,nullable=true,insertable=true,updatable=true,length=10)
	public String getForbidSaleTimeRegionBeforeDeparture() {
		return forbidSaleTimeRegionBeforeDeparture;
	}
	@Column(name ="auto_arrange_end_date",unique=false,nullable=true,insertable=true,updatable=true,length=0)
	public Date getAutoArrangeEndDate() {
		return autoArrangeEndDate;
	}
	@Transient
	public ZtcRoute getZtcRoute() {
		return ztcRoute;
	}
	@Transient
	public List<ZtcClassesPrice> getZtcClassesPrices() {
		return ztcClassesPrices;
	}
	@Transient
	public List<ZtcClassesSite> getZtcClassesSites() {
		return ztcClassesSites;
	} 
	@Transient
	public String getSelectDates() {
		return selectDates;
	}

} 
